<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Index extends My_Controller{

    public function __construct()
    {
        parent::__construct();
    }
    public function index(){
       
        $validate = new Validate([
            'test' => 'require|number'
        ]);
        if (!$validate->check(['test'=>"test333"])) {
            $data = [
                'code'    => 100001,
                'message' => $validate->getError(),
                'data'    => array(),
            ];
        }

        echo "Welcome to see you !";
        die;
    }
        
}

/* End of file login.php */
/* Location: ./application/controllers/login.php */
